package com.zpkj.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created on 2018/5/28.
 */
@RestController
public class ComputerController {

	@RequestMapping(value = "/computer", method = RequestMethod.GET)
	public String computer(@RequestParam(name = "a") Integer a, @RequestParam(name = "b") Integer b) {
		int c = a * b;
		return String.valueOf(c);
	}

}
